package com.deyuanyun.pic.ctrl.service.impl;

import javax.annotation.Resource;

import com.deyuanyun.pic.ctrl.service.EQPTBaseService;
import com.deyuanyun.pic.pipe.dao.BaseDAO;

import org.springframework.stereotype.Service;

@Service
public class EQPTBaseServiceImpl implements EQPTBaseService {

    
    private @Resource BaseDAO baseDao;
    
    @Override
    public <T> T queryObjectByCustomNumber(Class<T> clazz, String customNumber) {
        T t = baseDao.queryObjectByCustomNumber(clazz, customNumber);
        return t;
    }

    @Override
    public <T> T queryObjectByPrimaryKey(Class<T> clazz, String primaryKey) {
        T t = baseDao.queryObjectByPrimaryKey(clazz, primaryKey);
        return t;
    }
    
}
